<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Site extends Model
{
    //
    use SoftDeletes;
    
    protected $connection = 'mysql';
	
	protected $casts = [
        'remark' => 'json',
    ];
    //获取默认站点
    public static function default_site()
    {
    	return self::where('is_index', 1)->first();
    }
}
